package com.lyw.GeoLocationClient.service;

import com.lyw.GeoLocationClient.json.em.EMResponse;
import com.lyw.GeoLocationClient.json.em.RegUserRequest;
import com.lyw.GeoLocationClient.json.em.TokenRequestBody;
import com.lyw.GeoLocationClient.json.em.TokenResponse;
import retrofit.Callback;
import retrofit.http.Body;
import retrofit.http.Header;
import retrofit.http.POST;
import retrofit.http.Path;

public interface EMUserService {

    @POST("/lzy/lyy/users/")
    EMResponse regUser(@Body RegUserRequest body);

    @POST("/lzy/lyy/token")
    void requestToken(@Body TokenRequestBody tokenRequestBody, Callback<TokenResponse> callback);

    @POST("/lzy/lyy/users/{owner_username}/contacts/users/{friend_username}")
    void addFriend(@Header("Authorization") String auth,
                   @Path("owner_username") String owner,
                   @Path("friend_username") String friend,
                   Callback<EMResponse> cb);

}
